package com.zdy.mvc.controller;

import com.zdy.mvc.entity.User;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author: Deyou
 * @Date: 2021/4/10
 */
@Controller
public class UserController{
    @PostMapping("/register")
   public String registUser(User user, Model model){
       model.addAttribute("user",user);
        return "success";
   }
}
